import random

yue = 10000
number = 20
for i in range(1, 21):
    grade = random.randint(1, 10)
    if yue > 0:
        if grade <= 5:
            print(f"员工{i},绩效分{grade},低于5,不发工资,下一位。")
            continue
        else:
            yue -= 1000
            print(f"向员工{i}，发放工资{1000},账户余额还剩{yue}")
            continue
    else:
        print(f"余额当前为{yue}，工资发完了,下个月领取吧")
        break
